package com.publicize.entity.Vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
@Data
public class QueryVo {
    /**
     * 查询条件 用户名/id
     */
    private String key;
    /**
     * 总页数
     */
    private Integer page;
    /**
     * 每页数据
     */
    private Integer limit;
    /**
     * 模块id
     */
    private String relationshipId;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    private Integer start;
    public Integer getStart() {
        this.start=(page-1)*limit;
        return this.start;
    }
}